package mybatis1.com.config.model;

import java.util.ArrayList;
import java.util.List;

public class Grade {
    private long id;
    private String gname;

    private List<Student> stu=new ArrayList<>();

    public Grade() {
    }

    public Grade(long id, String gname, List<Student> stu) {
        this.id = id;
        this.gname = gname;
        this.stu = stu;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public List<Student> getStu() {
        return stu;
    }

    public void setStu(List<Student> stu) {
        this.stu = stu;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "id=" + id +
                ", gname='" + gname + '\'' +
                ", stu=" + stu +
                '}';
    }
}
